summary: write the contents to a temporary file
authorGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 2 Apr 2015 09:58:16 +0000 (11:58 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 14 Apr 2015 15:42:25 +0000 (17:42 +0200)
commit362771aa9831c8cae81ff1bf55b5cc16dddf760e
tree6740a2c2ee496050075482ebb91450c66fbf8914
parent69184e70e953c8d2084b73202bd0ba8d419e7480
summary: write the contents to a temporary file

do not write directly to the summary file but use a temporary file
first.  It avoids to create an empty file if "ot_util_variant_save"
fails.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo.c